/**
 * 
 */
package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.SuggestionDao;
import com.oscarmovie.model.Suggestion;

/**
 * @author zhengda
 *
 */
public class SuggestionServiceImpl implements SuggestionService {
	
	private SuggestionDao suggestionDao;
		
	/**
	 * @return the suggestionDao
	 */
	public SuggestionDao getSuggestionDao() {
		return suggestionDao;
	}

	/**
	 * @param suggestionDao the suggestionDao to set
	 */
	public void setSuggestionDao(SuggestionDao suggestionDao) {
		this.suggestionDao = suggestionDao;
	}

	/* (non-Javadoc)
	 * @see com.oscarmovie.service.SuggestionService#save(com.oscarmovie.model.Suggestion)
	 */
	
	public void save(Suggestion suggestion) {
		suggestionDao.save(suggestion);
	}

	/* (non-Javadoc)
	 * @see com.oscarmovie.service.SuggestionService#load(int)
	 */
	
	public Suggestion load(int id) {		
		return suggestionDao.load(id);
	}
	
	
	public void delete(int id) {
		suggestionDao.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.oscarmovie.service.SuggestionService#loadAll()
	 */
	
	public List<Suggestion> loadAll() {		
		return suggestionDao.loadAll();
	}

}
